home *** CD-ROM | disk | FTP | other *** search
Text File | 1996-12-16 | 1.6 KB | 38 lines | [TEXT/MPS ] |
- //========================================================================================
- //
- // File: FWBndStr.h
- // Release Version: $ ODF 3 $
- //
- // Copyright: (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
- //
- //========================================================================================
- // This file used to contain class declarations for FW_CString32 and FW_CString255.
- //
- // ODF release 1 & 2 supported two derivatives of FW_CString: FW_CString32 and
- // FW_CString255. These classes were intended to represent stack-based bound
- // strings that were less expensive than FW_CString and could be used when
- // string data was known to not exceed the specified character count. In practice,
- // they turned out to be more expensive than FW_CString. Since they were reference
- // counted and shared, they always required at least one heap allocation for the
- // shared representation object. They also had the ability to become dynamic (be
- // moved into the heap) when necessary. The amount of code required to support
- // stack-heap transitions, and the state tests exceeded the amount of code
- // executed for FW_CString and, consequently, they were removed from the framework.
- //
- // The compatibility code present in this unit exists to support the runtime
- // ability to instantiate an archived FW_CString32 or FW_CString255. When an
- // archived instance of either of these classes is encounted, and FW_CString
- // will be instantiated. When it is written, it will be written as an FW_CString.
-
- #ifndef FWBNDSTR_H
- #define FWBNDSTR_H
-
- #ifndef FWPSTR_H
- #include "FWPStr.h"
- #endif
-
- typedef FW_CString FW_CString32;
- typedef FW_CString FW_CString255;
-
- #endif
-